﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.Tasks.ViewModels
{
	[DataContract]
	public class Task
	{
		[DataMember]
		public string Id { get; set; }
		[DataMember]
		public string Name { get; set; }
		[DataMember]
		public DateTime CreationDate { get; set; }
		[DataMember]
		public bool IsRunning { get; set; }
		[DataMember]
		public DateTime NextRunningDate { get; set; }
		[DataMember]
		public ERPStore.Models.ScheduledTaskTimePeriod Period { get; set; }
		[DataMember]
		public int StartedCount { get; set; }
		[DataMember]
		public int Interval { get; set; }
		[DataMember]
		public bool Runnable { get; set; }
		[DataMember]
		public bool IsParallelizable { get; set; }
		[DataMember]
		public bool Enabled { get; set; }
		[DataMember]
		public int StartHour { get; set; }
		[DataMember]
		public int StartMinute { get; set; }
		[DataMember]
		public string MachineName { get; set; }
		[DataMember]
		public string HostName { get; set; }
		[DataMember]
		public string Context { get; set; }
		[DataMember]
		public string ApplicationName { get; set; }
	}
}
